-- addition_sacrifice
-- create by wangy
-- 向邪神雕像献祭，信仰度增加%，持续本层

return {
    apply = function(prop, baseValue)
        if prop[3] == 0 then
            return baseValue;
        end

        -- 增加
        return baseValue + math.modf(baseValue * prop[3] / 1000);
    end,

    desc = function(prop)
        local str = PropM.query(prop[1], "desc");

        str = string.gsub(str, "{1}", prop[3] / 10);

        return str
    end,

    record = function(target, prop, path)
        return false;
    end
};
